﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Forest.Cat.Domain.Entities;
using Forest.Cat.Web.Models.Catalog;

namespace Forest.Cat.Web.Models
{
    public class HomePageModels
    {
        public HomePageModels()
        {
            Materials = new List<Material>();
            HotJobList = new List<HomePageCompanyList>();
            UrgentJobList = new List<HomePageCompanyList>();
            NormalJobList = new List<HomePageCompanyList>();
            JobClassList = new List<JobLovModel>();

        }

        public IList<Material> Materials { get; set; }

        //public IList<HomePageJobList> HomePageJobList { get; set; }

        public IList<HomePageCompanyList> HotJobList { get; set; }

        public IList<HomePageCompanyList> UrgentJobList { get; set; }

        public IList<HomePageCompanyList> NormalJobList { get; set; }

        public IList<JobLovModel> JobClassList { get; set; }
    }

    public class HomePageJobList
    {
        public HomePageJobList()
        {
            Job = new Job();
        }

        public Job Job { get; set; }
        public DateTime? PublishDate { get; set; }
    }

    public class HomePageCompanyList
    {

        public HomePageCompanyList()
        {
            JobList = new List<HomePageJobList>();
        }

        public Company Company { get; set; }

        public IList<HomePageJobList> JobList { get; set; }

        public DateTime? PublishDate { get; set; }

        public bool IsStandout { get; set; }
    }
}